/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Occupational Therapist Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20538 (C-0-T19465-S20532-S20538-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOccupationalTherapistProviderCodes()
 * @model extendedMetaData="name='OccupationalTherapistProviderCodes'"
 * @generated
 */
public enum OccupationalTherapistProviderCodes implements Enumerator {
	/**
	 * The '<em><b>225X00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225X00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_225X00000X(0, "_225X00000X", "225X00000X"),

	/**
	 * The '<em><b>225XE1200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225XE1200X_VALUE
	 * @generated
	 * @ordered
	 */
	_225XE1200X(1, "_225XE1200X", "225XE1200X"),

	/**
	 * The '<em><b>225XH1200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225XH1200X_VALUE
	 * @generated
	 * @ordered
	 */
	_225XH1200X(2, "_225XH1200X", "225XH1200X"),

	/**
	 * The '<em><b>225XH1300X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225XH1300X_VALUE
	 * @generated
	 * @ordered
	 */
	_225XH1300X(3, "_225XH1300X", "225XH1300X"),

	/**
	 * The '<em><b>225XN1300X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225XN1300X_VALUE
	 * @generated
	 * @ordered
	 */
	_225XN1300X(4, "_225XN1300X", "225XN1300X"),

	/**
	 * The '<em><b>225XP0200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225XP0200X_VALUE
	 * @generated
	 * @ordered
	 */
	_225XP0200X(5, "_225XP0200X", "225XP0200X"),

	/**
	 * The '<em><b>225XR0403X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_225XR0403X_VALUE
	 * @generated
	 * @ordered
	 */
	_225XR0403X(6, "_225XR0403X", "225XR0403X");

	/**
	 * The '<em><b>225X00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225X00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225X00000X
	 * @model literal="225X00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _225X00000X_VALUE = 0;

	/**
	 * The '<em><b>225XE1200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225XE1200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225XE1200X
	 * @model literal="225XE1200X"
	 * @generated
	 * @ordered
	 */
	public static final int _225XE1200X_VALUE = 1;

	/**
	 * The '<em><b>225XH1200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225XH1200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225XH1200X
	 * @model literal="225XH1200X"
	 * @generated
	 * @ordered
	 */
	public static final int _225XH1200X_VALUE = 2;

	/**
	 * The '<em><b>225XH1300X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225XH1300X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225XH1300X
	 * @model literal="225XH1300X"
	 * @generated
	 * @ordered
	 */
	public static final int _225XH1300X_VALUE = 3;

	/**
	 * The '<em><b>225XN1300X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225XN1300X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225XN1300X
	 * @model literal="225XN1300X"
	 * @generated
	 * @ordered
	 */
	public static final int _225XN1300X_VALUE = 4;

	/**
	 * The '<em><b>225XP0200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225XP0200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225XP0200X
	 * @model literal="225XP0200X"
	 * @generated
	 * @ordered
	 */
	public static final int _225XP0200X_VALUE = 5;

	/**
	 * The '<em><b>225XR0403X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>225XR0403X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_225XR0403X
	 * @model literal="225XR0403X"
	 * @generated
	 * @ordered
	 */
	public static final int _225XR0403X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Occupational Therapist Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OccupationalTherapistProviderCodes[] VALUES_ARRAY =
		new OccupationalTherapistProviderCodes[] {
			_225X00000X,
			_225XE1200X,
			_225XH1200X,
			_225XH1300X,
			_225XN1300X,
			_225XP0200X,
			_225XR0403X,
		};

	/**
	 * A public read-only list of all the '<em><b>Occupational Therapist Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OccupationalTherapistProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Occupational Therapist Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OccupationalTherapistProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OccupationalTherapistProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Occupational Therapist Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OccupationalTherapistProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OccupationalTherapistProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Occupational Therapist Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OccupationalTherapistProviderCodes get(int value) {
		switch (value) {
			case _225X00000X_VALUE: return _225X00000X;
			case _225XE1200X_VALUE: return _225XE1200X;
			case _225XH1200X_VALUE: return _225XH1200X;
			case _225XH1300X_VALUE: return _225XH1300X;
			case _225XN1300X_VALUE: return _225XN1300X;
			case _225XP0200X_VALUE: return _225XP0200X;
			case _225XR0403X_VALUE: return _225XR0403X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OccupationalTherapistProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OccupationalTherapistProviderCodes
